Xbasic

A5DNS::ManagerShowConnectionStringDialog Method

Syntax

.ShowConnectionStringDialog as A5Storage::CallResult (BYREF ConnectionStringResult as C, ConnectionStringIn as C [, EncryptResponse as L [, Passphrase as C]])

Arguments

BYREF ConnectionStringResultCharacter

A variable that will contain the formatted connection string if the user clicks OK in the dialog.

ConnectionStringInCharacter

A variable with the current contents of the connection string. This can be the same variable as the first parameter.

EncryptResponseLogical

(Optional) .t. if the connection string should be encrypted before it is returned.

PassphraseCharacter

(Optional) A passphrase to use when encrypting the connection string before it is returned. Note: You must provide this passphrase when the connection string is used in code that connects to the DNS manager.

Returns

resultA5Storage::CallResult

A CallResult object with properties that describe any error returned. Check the Success property to see if the function succeeded.

Description

ShowConnectionStringDialog() shows a dialog that can be used to enter and encrypt credentials for the DNS service to be used.

Example

' Call the ShowConnectionStringDialog() function and then use the results to open the DNS Manager.
dim cs as c
?A5DNS::Manager::ShowConnectionstringdialog(cs, cs)

'Create a variable for the DNS Manager
dim dnsm as A5DNS::Manager = null_value()

' Open a session with the DNS manager
Result = A5DNS::Manager::Open(dnsm,cs)
images/A5DNSManagerConnectionStringDialog.jpg
The DNS Manager Connection String Dialog